package com.mike.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description
 * @Date 2021/11/30 17:53
 * @Created by mike
 */
@FeignClient(value = "spring-cloud-service-user",path = "/user")
public interface UserServiceFeignClient {

    /**
     * 根据token查询⽤户登录邮箱地址接⼝
     *
     * @return 邮箱地址
     */
    @GetMapping("/info/{token}")
    String getEmailByToken(@PathVariable String token);

}
